<template>
	<view class="content">
		<image class="logo" src="/static/K2.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<view class="content">
			<button @click="TestClick">写入数据</button>
			<button @click="SelectData(5)">查询数据</button>
			<button @click="InsertData">删除数据</button>
			<button  type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">获取机号</button>
			<navigator url="../ziyuan/ziyuan">资源</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello Mr250'
			}
		},
		onLoad() {
			

		},
		methods: {
			InsertData(){
				console.log("点击写入数据@")
			},
			SelectData(a){
				//db.SelectData("select * from android_metadata")
				console.log("执行查询！",a);
				//alert(a);
			},
			TestClick(){
				console.log("测试测试");
			}

		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	.box{
		margin-left: 20px;
		width: 100px;
		height: 100px;
		background-color: $uni-color-primary;
	}
</style>
